package yf.mall.service;

import yf.mall.entity.AnswerEntity;
import yf.mall.entity.QuestionEntity;
import yf.mall.vo.AnswerVo;
import com.yf.service.BaseService;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 回答表Service接口
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Tue Dec 15 13:24:48 CST 2020
 */
public interface AnswerService extends BaseService<AnswerEntity> {

    /************自动生成**************/
    List<AnswerVo> findVo(AnswerVo vo);

        AnswerVo getVo(Long id);

     int updateVo(AnswerVo vo);

       int saveVo(AnswerVo vo);

    void downLoad(HttpServletResponse response, List<AnswerVo> list);



    /***********BACK***********/




    /***********API***********/
    List<QuestionEntity> getQuestion(List<QuestionEntity> questions);

    AnswerEntity apiSave(Long userId, QuestionEntity question, String content);
}
